﻿using System;
using System.ComponentModel;

namespace TimeTracker.Phone
{
    public class NotifyPropertyChangedBase : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged = (s, a) => { };

        protected void Notify(object sender, PropertyChangedEventArgs args)
        {
            PropertyChanged(sender, args);
        }

        protected void Notify(string propertyName)
        {
            PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
